// pages/fenlei/fenlei.js
Page({
    user: "",
    onLoad:function(){
      wx.request({
                url: 'http://api.tianapi.com/ncov/index',
                data: {
                  key: '462a5b65939e299704882891b412a9c2'
                },
                success: (result) => {
                  var a = result.data.newslist[0].news;
                  this.setData({
                    user: a
                  })
                  console.log(a);
                }
              })
    },
    hs(e){
      wx.navigateTo({
        url: '../chouhs/chouhs',
      })
    },
})